﻿using System;
using System.Collections.Generic;
using System.Text;
using MgSoft.K3Cloud.WebApi.Common.Dto.Bd;
using MgSoft.K3Cloud.WebApi.Dto;

namespace MgSoft.K3Cloud.WebApi.Common.Api.Bd
{
    public class Bd_CustContactApi : BaseApi, IBd_CustContactApi
    {
        protected override string formId => "BD_CustContact";

        public Bd_CustContactApi(ApiServerInfo apiServerInfo, IMgLogger logger = null) : base(apiServerInfo, logger)
        {
        }

        public Bd_CustContactApi(string serverUrl, string dbid, string userName, string password, int lcid = 2052) : base(serverUrl, dbid, userName, password, lcid)
        {
        }

        public List<SaveOutPutDto> Save(Bd_CustContactSaveInputDto saveInputDto)
        {
            return base.Save(new SaveInputDto()
            {
                FormId = formId,
                Model = saveInputDto
            });
        }
    }
}
